AI Gateway
Claude Sonnet 4.5
Claude Sonnet 4.5 is the newest model in the Sonnet series, offering improvements and updates over Sonnet 4.
import { streamText } from 'ai'
const result = streamText({ model: 'anthropic/claude-sonnet-4.5', prompt: 'Why is the sky blue?'})
Try out Claude Sonnet 4.5 by Anthropic. Usage is billed to your team at API rates. Free users get $5 of credits every 30 days, and you are considered a free user if you haven't made a payment.
Chat with Claude Sonnet 4.5
Powered by Vercel AI Gateway
The AI Gateway supports routing requests across multiple AI providers. You can control provider preferences using the provider slugs available for copying with the buttons below. For more see the AI Gateway provider options documentation.
Anthropic
Available Model Variants
Claude Sonnet 4.5 now supports a 1M-token context (beta); opt in by sending the anthropic-beta: context-1m-2025-08-07
header. See the announcement and docs: news, context windows.
Pricing: only if total input tokens (prompt + cache reads/writes) exceed 200K, input is charged 2× and output 1.5×; otherwise standard rates apply. Details: long context pricing.
Context 200K
Input Tokens $3.00/M
Output Tokens $15.00/M
Cache Read Tokens $0.30/M
Cache Write Tokens $3.75/M